import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Home-pc
 * Date: 2023-08-10
 * Time: 15:12
 */
public class java0810 {
    public static void main(String[] args) {
/*        int a1=100;
        long a2=10L;
        //a2=a1;
        a1=(int)a2;*/

/*        byte a=100;
        byte b=(byte)257;
        System.out.println(b);*/

/*        boolean flag=true;
        int a=100;
        a=(int)flag;
        flag=a;*/

/*        int a=12;
        long b=23;
        long d=a+b;
        int c=a+b;*/

/*        byte a=12;
        byte b=34;
        byte c=(byte)(a+b);//第一种
        int  d=a+b;//第二种
        System.out.println(c);
        System.out.println(d);*/

/*        String s1="hello";
        String s2=" world";
        System.out.println(s1);
        System.out.println(s1+s2);*/

/*        int num=12;
        String str1=String.valueOf(num);//方法1
        System.out.println(str1);
        String str2=num+"";//方法2
        System.out.println(str2);*/

/*        int c=12;
        int d=34;
        //System.out.println("c="+c + ", d="+d);
        System.out.println(c+d+"hello");
        System.out.println("hello"+c+d);
        System.out.println("hello"+(c+d));*/

/*        String str="123";
        int num=Integer.parseInt(str);
        System.out.println(num);*/

/*        System.out.println(10%3);
        System.out.println(-10%3);
        System.out.println(10%-3);
        System.out.println(-10%-3);*/

        int a=1;
        int b=0;
        System.out.println(a/b);

    }
    public static void main1(String[] args) {
/*        System.out.println("qwert");
        System.out.println(110);
        System.out.println(3.254);
        System.out.println('A');
        System.out.println(true);*/

/*        System.out.println("==================");
        int a1=5,a2=56,a3=89;
        System.out.println(a1);
        System.out.println(a2);
        System.out.println(a3);
        System.out.println("==================");
*//*        int b1;
        System.out.println(b1);*//*
        System.out.println("==================");
        //int变量所能表示的最大值
        System.out.println(Integer.MIN_VALUE);
        System.out.println(Integer.MAX_VALUE);
        System.out.println("==================");
        long c1=8L;
        System.out.println(c1);
        System.out.println(Long.MAX_VALUE);
        System.out.println(Long.MIN_VALUE);
        System.out.println("==================");
        //short类型的取值范围
        System.out.println(Short.MAX_VALUE);
        System.out.println(Short.MIN_VALUE);
        System.out.println("==================");
        byte d1=2;
        System.out.println(d1);
        //byte类型的取值范围
        System.out.println(Byte.MAX_VALUE);
        System.out.println(Byte.MIN_VALUE);
        System.out.println("==================");
        System.out.println("==================");
        double e1=3.14;
        System.out.println(e1);
        int a=3;
        int b=2;
        System.out.println(a/b);
        double c=3;
        double d=2;
        System.out.println(c/d);
        System.out.println("==================");
        System.out.println("==================");
        double f1=1.4;
        System.out.println(f1*f1);
        System.out.println("==================");
        System.out.println("==================");
        float g1=1.5f;// 写作 大F 也可以
        System.out.println(g1);
        System.out.println("==================");
        System.out.println("==================");
        char h1='a';
        System.out.println(h1);
        char h2='年';
        System.out.println(h2);
        System.out.println("==================");
        System.out.println("==================");
        boolean value1=false;
        System.out.println(value1);
        boolean value2=true;
        System.out.println(value2+1);*/

        //String.valueOf()//ctrl+ 鼠标左键



    }
}
